import { get, post } from '@/lin/plugin/axios'

class Distribution {
  static async getDistributionList() {
    const res = await get('v1/distribution')
    return res
  }

  static async getDetailDistribution(id) {
    const res = await get(`v1/distribution/${id}`)
    return res
  }

  static async changeState(data) {
    const res = await post('/v1/distribution', data)
    return res
  }
}


export default Distribution
